import React from "react";
import {Router} from "react-router-dom";
import renderRoutes from './utils/renderRoutes';
import routerConfig from './config/router.config';
import {history} from './utils/utils';
import {hot} from 'react-hot-loader'

const Page = () => (
  <Router history={history}>
      {renderRoutes(routerConfig)}
  </Router>
);

export default hot(module)(Page);

